// Fill out your copyright notice in the Description page of Project Settings.

#include "WorldBridge.h"
#include "WorldEntityReferencing.h"

WORLD_ENTITY_META_DEFINE(FWorldBridge, FWorldEntity);

FWorldBridge::FWorldBridge()
	: Super()
	, S(this, 0.0)
	, Length(this, 0.0)
	, Name(this, "")
	, Type(this, "")
	, Validity(this)
{}

FWorldBridge::FWorldBridge(const json& j)
	: Super(j)
	, S(this, 0.0, _xml, "s")
	, Length(this, 0.0, _xml, "length")
	, Name(this, "", _xml, "name")
	, Type(this, "", _xml, "type")
	, Validity(this, _xml, "validity")
{}

FWorldBridge::~FWorldBridge()
{}

void FWorldBridge::Resolve(FWorldEntityReferencing& referencing)
{
	Super::Resolve(referencing);
	referencing
		.Resolve(Validity);
}
